#ifndef CELL_BOOKMGR_H
#define CELL_BOOKMGR_H

#include <QWidget>
#include <QTableView>
#include <QStandardItemModel>
#include <QMessageBox>
#include "lib/sqlmgr.h"
#include "dlg_bookau.h"
#include "dlg_bookgs.h"

namespace Ui {
class Cell_BookMgr;
}

class Cell_BookMgr : public QWidget
{
    Q_OBJECT

public:
    explicit Cell_BookMgr(QWidget *parent = 0);
    ~Cell_BookMgr();

    QStandardItemModel m_model;

    void initPage();

    int selectBookItem();

private slots:
    void on_btn_query_clicked();

    void on_btn_add_clicked();

    void on_btn_update_clicked();

    void on_btn_delete_clicked();

    void on_btn_return_clicked();

    void on_btn_borrow_clicked();

private:
    Ui::Cell_BookMgr *ui;
};

#endif // CELL_BOOKMGR_H
